package com.dljd.javase.t9.example4;

import java.util.UUID;

public class UUIDDemo {
    public static void main(String args[]) {
        StringBuffer a = new StringBuffer("A");
        StringBuffer b = new StringBuffer("B");
        mb_operate(a, b);
        System.out.println(a + "." + b);
    }
    static void mb_operate(StringBuffer x, StringBuffer y) {
        x.append(y);//AB
        y=x;
        y.append("ttt");
    }
/*
    public static void main(String[] args) {
        StringBuffer sbf = new StringBuffer("java");
        StringBuffer sbf1 = sbf.append(",C#");
        String sbf2 = sbf + ",C#";
        System.out.print(sbf.equals(sbf1));
        System.out.println(sbf2.equals(sbf));
        *//*for (int n=0;n<10;n++){
//            System.out.println(UUID.randomUUID().toString());
            System.out.println((int)((Math.random()*31)+30));//0.0-1.0
        }*//*
    }*/
}
